<section class="page-user">
    <div class="page-register">
        <header class="page-header">
            <div class="header-wrap">
                <h3>注册</h3>
                <back-menu></back-menu>
            </div>
        </header>
        <div class="mod-form-wrap mt20">
            <div class="mod-form">
                <label>手机号</label><input ng-model="mobile" type="tel" class="inp" placeholder="请输入手机号码"/>
            </div>
            <div class="mod-form">
                <span ng-if="time==0" class="tip-r" ng-click="getImgCode();">获取验证码</span>
                <span ng-if="time!=0" class="tip-r txt-grey">{{time}}秒后重发</span>
                <label>验证码</label><input ng-model="checkCode" type="tel" class="inp" placeholder="验证码" style="width: 0.9rem"/>
            </div>
        </div>
        <p class="pl20 pt20 txt-grey">
            <label>
                <input type="checkbox" ng-model="agreement">
                我已阅读并同意<a href="#/agreementRegister?backURL=/register1" class="txt-blue">《平台网站服务协议》</a>
            </label>
        </p>
        <div class="pl15 pr15 pt20">
            <button class="btn btn-blue" ng-click="register();">下一步</button>
        </div>
        <p class="pt20 txt-center txt-grey">
            已有账号？<a class="txt-blue" href="#login">请登录</a>
        </p>
    </div>
</section>
<dialog ng-show="showCodeDialog">
    <div class="mod-img-code-wrap">
        <header>请输入验证码</header>
        <div class="content">
            <img class="img-code" ng-click="refreshCode();" ng-src="/sso/checkCode.json?v={{temptimes}}">
            <input class="inp-code ml10" ng-model="$parent.imgCode" type="text" maxlength="4">
        </div>
        <footer>
            <ul>
                <li ng-click="closeDialog();">取消</li>
                <li ng-click="sendCode();">确定</li>
            </ul>
        </footer>
    </div>
</dialog>